home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / find / nsIFind.h next >
C/C++ Source or Header  |  2006-05-08  |  7KB  |  176 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIFind.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIFind_h__
  6. #define __gen_nsIFind_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMRange; /* forward declaration */
  18.  
  19. class nsIWordBreaker; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIFind */
  23. #define NS_IFIND_IID_STR "75125d55-37ee-4575-b9b5-f33bfa68c2a1"
  24.  
  25. #define NS_IFIND_IID \
  26.   {0x75125d55, 0x37ee, 0x4575, \
  27.     { 0xb9, 0xb5, 0xf3, 0x3b, 0xfa, 0x68, 0xc2, 0xa1 }}
  28.  
  29. class NS_NO_VTABLE nsIFind : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IFIND_IID)
  33.  
  34.   /* attribute boolean findBackwards; */
  35.   NS_IMETHOD GetFindBackwards(PRBool *aFindBackwards) = 0;
  36.   NS_IMETHOD SetFindBackwards(PRBool aFindBackwards) = 0;
  37.  
  38.   /* attribute boolean caseSensitive; */
  39.   NS_IMETHOD GetCaseSensitive(PRBool *aCaseSensitive) = 0;
  40.   NS_IMETHOD SetCaseSensitive(PRBool aCaseSensitive) = 0;
  41.  
  42.   /**
  43.    * Use "find entire words" mode by setting to a word breaker
  44.    * or null, to disable "entire words" mode.
  45.    */
  46.   /* attribute nsIWordBreaker wordBreaker; */
  47.   NS_IMETHOD GetWordBreaker(nsIWordBreaker * *aWordBreaker) = 0;
  48.   NS_IMETHOD SetWordBreaker(nsIWordBreaker * aWordBreaker) = 0;
  49.  
  50.   /**
  51.    * Find some text in the current context. The implementation is
  52.    * responsible for performing the find and highlighting the text.
  53.    *
  54.    * @param aPatText     The text to search for.
  55.    * @param aSearchRange A Range specifying domain of search.
  56.    * @param aStartPoint  A Range specifying search start point.
  57.    *                     If not collapsed, we'll start from
  58.    *                     end (forward) or start (backward).
  59.    *                     May be null; if so, we'll start at the start
  60.    *                     (forward) or end (back) of aSearchRange.
  61.    * @param aEndPoint    A Range specifying search end point.
  62.    *                     If not collapsed, we'll end at
  63.    *                     end (forward) or start (backward).
  64.    *                     May be null; if so, we'll end at the end
  65.    *                     (forward) or start (back) of aSearchRange.
  66.    * @retval             A range spanning the match that was found (or null).
  67.    */
  68.   /* nsIDOMRange Find (in wstring aPatText, in nsIDOMRange aSearchRange, in nsIDOMRange aStartPoint, in nsIDOMRange aEndPoint); */
  69.   NS_IMETHOD Find(const PRUnichar *aPatText, nsIDOMRange *aSearchRange, nsIDOMRange *aStartPoint, nsIDOMRange *aEndPoint, nsIDOMRange **_retval) = 0;
  70.  
  71. };
  72.  
  73. /* Use this macro when declaring classes that implement this interface. */
  74. #define NS_DECL_NSIFIND \
  75.   NS_IMETHOD GetFindBackwards(PRBool *aFindBackwards); \
  76.   NS_IMETHOD SetFindBackwards(PRBool aFindBackwards); \
  77.   NS_IMETHOD GetCaseSensitive(PRBool *aCaseSensitive); \
  78.   NS_IMETHOD SetCaseSensitive(PRBool aCaseSensitive); \
  79.   NS_IMETHOD GetWordBreaker(nsIWordBreaker * *aWordBreaker); \
  80.   NS_IMETHOD SetWordBreaker(nsIWordBreaker * aWordBreaker); \
  81.   NS_IMETHOD Find(const PRUnichar *aPatText, nsIDOMRange *aSearchRange, nsIDOMRange *aStartPoint, nsIDOMRange *aEndPoint, nsIDOMRange **_retval); 
  82.  
  83. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  84. #define NS_FORWARD_NSIFIND(_to) \
  85.   NS_IMETHOD GetFindBackwards(PRBool *aFindBackwards) { return _to GetFindBackwards(aFindBackwards); } \
  86.   NS_IMETHOD SetFindBackwards(PRBool aFindBackwards) { return _to SetFindBackwards(aFindBackwards); } \
  87.   NS_IMETHOD GetCaseSensitive(PRBool *aCaseSensitive) { return _to GetCaseSensitive(aCaseSensitive); } \
  88.   NS_IMETHOD SetCaseSensitive(PRBool aCaseSensitive) { return _to SetCaseSensitive(aCaseSensitive); } \
  89.   NS_IMETHOD GetWordBreaker(nsIWordBreaker * *aWordBreaker) { return _to GetWordBreaker(aWordBreaker); } \
  90.   NS_IMETHOD SetWordBreaker(nsIWordBreaker * aWordBreaker) { return _to SetWordBreaker(aWordBreaker); } \
  91.   NS_IMETHOD Find(const PRUnichar *aPatText, nsIDOMRange *aSearchRange, nsIDOMRange *aStartPoint, nsIDOMRange *aEndPoint, nsIDOMRange **_retval) { return _to Find(aPatText, aSearchRange, aStartPoint, aEndPoint, _retval); } 
  92.  
  93. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  94. #define NS_FORWARD_SAFE_NSIFIND(_to) \
  95.   NS_IMETHOD GetFindBackwards(PRBool *aFindBackwards) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFindBackwards(aFindBackwards); } \
  96.   NS_IMETHOD SetFindBackwards(PRBool aFindBackwards) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFindBackwards(aFindBackwards); } \
  97.   NS_IMETHOD GetCaseSensitive(PRBool *aCaseSensitive) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCaseSensitive(aCaseSensitive); } \
  98.   NS_IMETHOD SetCaseSensitive(PRBool aCaseSensitive) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCaseSensitive(aCaseSensitive); } \
  99.   NS_IMETHOD GetWordBreaker(nsIWordBreaker * *aWordBreaker) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWordBreaker(aWordBreaker); } \
  100.   NS_IMETHOD SetWordBreaker(nsIWordBreaker * aWordBreaker) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWordBreaker(aWordBreaker); } \
  101.   NS_IMETHOD Find(const PRUnichar *aPatText, nsIDOMRange *aSearchRange, nsIDOMRange *aStartPoint, nsIDOMRange *aEndPoint, nsIDOMRange **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Find(aPatText, aSearchRange, aStartPoint, aEndPoint, _retval); } 
  102.  
  103. #if 0
  104. /* Use the code below as a template for the implementation class for this interface. */
  105.  
  106. /* Header file */
  107. class nsFind : public nsIFind
  108. {
  109. public:
  110.   NS_DECL_ISUPPORTS
  111.   NS_DECL_NSIFIND
  112.  
  113.   nsFind();
  114.  
  115. private:
  116.   ~nsFind();
  117.  
  118. protected:
  119.   /* additional members */
  120. };
  121.  
  122. /* Implementation file */
  123. NS_IMPL_ISUPPORTS1(nsFind, nsIFind)
  124.  
  125. nsFind::nsFind()
  126. {
  127.   /* member initializers and constructor code */
  128. }
  129.  
  130. nsFind::~nsFind()
  131. {
  132.   /* destructor code */
  133. }
  134.  
  135. /* attribute boolean findBackwards; */
  136. NS_IMETHODIMP nsFind::GetFindBackwards(PRBool *aFindBackwards)
  137. {
  138.     return NS_ERROR_NOT_IMPLEMENTED;
  139. }
  140. NS_IMETHODIMP nsFind::SetFindBackwards(PRBool aFindBackwards)
  141. {
  142.     return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144.  
  145. /* attribute boolean caseSensitive; */
  146. NS_IMETHODIMP nsFind::GetCaseSensitive(PRBool *aCaseSensitive)
  147. {
  148.     return NS_ERROR_NOT_IMPLEMENTED;
  149. }
  150. NS_IMETHODIMP nsFind::SetCaseSensitive(PRBool aCaseSensitive)
  151. {
  152.     return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154.  
  155. /* attribute nsIWordBreaker wordBreaker; */
  156. NS_IMETHODIMP nsFind::GetWordBreaker(nsIWordBreaker * *aWordBreaker)
  157. {
  158.     return NS_ERROR_NOT_IMPLEMENTED;
  159. }
  160. NS_IMETHODIMP nsFind::SetWordBreaker(nsIWordBreaker * aWordBreaker)
  161. {
  162.     return NS_ERROR_NOT_IMPLEMENTED;
  163. }
  164.  
  165. /* nsIDOMRange Find (in wstring aPatText, in nsIDOMRange aSearchRange, in nsIDOMRange aStartPoint, in nsIDOMRange aEndPoint); */
  166. NS_IMETHODIMP nsFind::Find(const PRUnichar *aPatText, nsIDOMRange *aSearchRange, nsIDOMRange *aStartPoint, nsIDOMRange *aEndPoint, nsIDOMRange **_retval)
  167. {
  168.     return NS_ERROR_NOT_IMPLEMENTED;
  169. }
  170.  
  171. /* End of implementation class template. */
  172. #endif
  173.  
  174.  
  175. #endif /* __gen_nsIFind_h__ */
  176.